library userentity;

import 'package:json_annotation/json_annotation.dart';

part 'user_entity.g.dart';


@JsonSerializable()
class UserEntity extends Object {

  @JsonKey(name: 'email')
  String email;

  @JsonKey(name: 'group_id')
  int groupId;

  @JsonKey(name: 'home_page_show')
  int homePageShow;

  @JsonKey(name: 'individual_resume')
  String individualResume;

  @JsonKey(name: 'logo')
  String logo;

  @JsonKey(name: 'mobile')
  String mobile;

  @JsonKey(name: 'nick_name')
  String nickName;

  @JsonKey(name: 'regdate')
  int regdate;

  @JsonKey(name: 'sex')
  int sex;

  @JsonKey(name: 'status')
  int status;

  @JsonKey(name: 'uid')
  int uid;

  @JsonKey(name: 'user_name')
  String userName;

  @JsonKey(name: 'token')
  String token;

  UserEntity(this.email,this.groupId,this.homePageShow,this.individualResume,this.logo,this.mobile,this.nickName,this.regdate,this.sex,this.status,this.uid,this.userName,this.token,);

  factory UserEntity.fromJson(Map<String, dynamic> srcJson) => _$UserEntityFromJson(srcJson);

  Map<String, dynamic> toJson() => _$UserEntityToJson(this);

}


